package com.googlecode.properlyidle.server;

import com.googlecode.properlyidle.persistence.PersistenceModule;
import com.googlecode.properlyidle.persistence.Transaction;
import com.googlecode.totallylazy.records.Records;
import com.googlecode.utterlyidle.RestApplication;
import org.apache.lucene.store.Directory;

import static com.googlecode.properlyidle.AllPropertiesFromRecords.definePropertiesRecord;
import static com.googlecode.properlyidle.aliases.AliasesFromRecords.defineAliasRecord;
import static com.googlecode.properlyidle.versioncontrol.changes.ChangesFromRecords.defineChangesRecord;
import static com.googlecode.properlyidle.versioncontrol.revisions.CurrentRevisionNumberFromRecords.defineHighestRevisionRecord;

public class PropertiesApplication extends RestApplication {
    public PropertiesApplication(Directory directory, PersistenceModule persistenceModule) {
        super();
        add(new PropertiesModule(directory));
        add(persistenceModule);
    }
}
